package com.jixiang.model.goods.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * (GsGoodsInfo)表实体类
 *
 * @author makejava
 * @since 2023-10-23 20:55:53
 */
@SuppressWarnings("serial")
@Data
public class GsGoodsInfo extends Model<GsGoodsInfo> {

    private Long id;

    private String name;

    private Double oldPrice;

    private Double price;

    private Integer num;

    private Double weight;

    private Integer inventory;

    private Long goodsTypeId;

    private Long goodsSelectId;

    private Long goodsBrankId;

    private Integer dynamicParamState;

    private String mainPic;

    //))))))))))))))
//    private Long staticParamsId;

    private Integer goodsState;

    private Date createTime;

    private Date updateTime;

    private int popularityNum;

    private int commentNum;
    @TableField(exist = false)
    private Long parentGoodsTypeId;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}

